package com.lazyfish.ioc;


import com.lazyfish.birds.Fenghuang;
import com.lazyfish.birds.Wuya;

public class FlyServiceImpl implements FlyService {
    //声明属性
    private Wuya wuya;
    private Fenghuang fenghuang;
    //依赖注入

    @Override
    public void fly() {

        this.wuya.fly();
        this.fenghuang.fly();
    }

    public void setWuya(Wuya wuya) {
        this.wuya = wuya;
    }

    public void setFenghuang(Fenghuang fenghuang) {
        this.fenghuang = fenghuang;
    }
}
